home *** CD-ROM | disk | FTP | other *** search
- % This sample shows how to create
- % - a user interface with a data space of 90kB
- % - an editable "String-Object": this makes a string VAR-Element editable
- % named as "OBJ:TEST1.V" (referred to as the "VAR-Parameter" of obj. TEST9)
- % - a "Stop Button" that executes the macro file "/xw/x/xbwstop.mta" when
- % pressed
-
- Malloc(90); %Get memory
- @xbwstart(("simple-project") ("bw")); %Setup xbw system in "bw"/"color"
- wdw(TEST 3 4 20 11 StandardWDW); %Window: name,x,y,w,h
- %TEXT object body:
- o(TEST1 S S 2 5 15 1 Standard); % name,disp,edit,x,y,w,h,color class
- bg(TEST1 . (" Hello World!")); %TEXT object head: name,contents
- % edit type "S" implies obj-action
- eg(); % end of head (object VAR-Group)
- %EXIT button body:
- o(TEST2 S . 9 9 8 1 Dangerous); % name,disp,edit,x,y,w,h,color class
- bg(TEST2 .(" Exit")); %EXIT button head: name,contents
- cn(raK("@xbwstop();")); % object action
- eg(); % end of head (object VAR-Group)
- Message(("Project Complete.")); %That's it!
- End();
-
-